//
//  ILikedListViewController.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/4.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ILikedListViewController.h"
#import "NewInformationViewController.h"

@interface ILikedListViewController ()
@property (nonatomic, strong) ILikedViewModel *likeModel;

@end

@implementation ILikedListViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.likeModel = [[ILikedViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    self.likeModel.type = self.type;
    kWeakSelf(self);
    self.likeModel.BlockSelectRow = ^(NSIndexPath * _Nonnull index) {
        [weakself seleRow:index];
    };
}

- (void)seleRow:(NSIndexPath *)index
{
    NewInformationViewController *vc = [NewInformationViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
